<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css">
    <script src="/static/lib/layui/layui.js"></script>
</head>
<body>
<header class="header" th:fragment="topbar">
    <div class="title">
        <img src="/static/img/haiguan.png" style="width: 410px;height: 65px;" />
    </div>

    <!--右边导航-->
    <div class="top-right-bar">
        <ul class="layui-nav layui-bg-green admin-user">
            <li class="layui-nav-item">
                <a href="javascript:"><span id="title" th:text="'欢迎你,'+${session.username}"></span></a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:" class="updatePass">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:" class="logout"><span></span>退出</a>
            </li>
        </ul>
    </div>
    <div id="topUpdatePass" style="display: none">
        <form class="layui-form  layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">旧密码</label>
                <div class="layui-input-block">
                    <input type="text" name="passwordOld" lay-verify="username" placeholder="请输入旧密码"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-block">
                    <input type="text" name="passwordNewA" lay-verify="username" placeholder="请输入新密码"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">确认密码</label>
                <div class="layui-input-block">
                    <input type="text" name="passwordNewB" lay-verify="username" placeholder="请输入新密码"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="topUpdatePass">确认修改</button>
                </div>
            </div>
        </form>
    </div>
</header>

<div class="leftMenu" th:fragment="sidebar">
    <!--图标-->
    <div class="log"></div>
    <!--侧边导航-->
    <div class="side-bar">
        <ul class="layui-nav layui-nav-tree layui-bg-green layui-nav-side">
            <li class="layui-nav-item">
                <a href="javascript:" style="" th:href="@{main}">
                    <span class="layui-icon-home layui-icon"></span>
                    首页
                </a>
            </li>
            <li class="layui-nav-item" >
                <a href="javascript:" th:href="@{Deliver}">
                    <span class="layui-icon-console layui-icon"></span>
                    送样信息管理
                </a>
            </li>
            <li class="layui-nav-item" >
                <a href="javascript:" th:href="@{chemicals}">
                    <span class="layui-icon-console layui-icon"></span>
                    化学品管理
                </a>
            </li>
            <li class="layui-nav-item plain-user" th:if="${session.user.getType()} eq 'admin'">
                <a href="javascript:" th:href="@{test-center-info}">
                    <span class="layui-icon-list layui-icon"></span>
                    检测中心信息
                </a>
            </li>
            <li class="layui-nav-item plain-user" th:if="${session.user.getType()} eq 'admin'">
                <a href="javascript:">
                    <span class="layui-icon-note layui-icon"></span>
                    基础信息
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:" th:href="@{userM}">用户管理</a></dd>
                    <dd><a href="javascript:"th:href="@{rulesF}">法规管理</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item plain-user" th:if="${session.user.getType()} eq 'admin'">
                <a href="javascript:">
                    <span class="layui-icon-list layui-icon"></span>
                    日志管理
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:" th:href="@{loginLog}">登录日志</a></dd>
                    <dd><a href="javascript:"th:href="@{exportLog}">导出日志</a></dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
</body>
</html>
